package org.sai.wxnovel.dao;

import org.apache.ibatis.annotations.Param;
import org.sai.wxnovel.bean.Book;
import org.sai.wxnovel.bean.Genres;

import java.util.List;

public interface BookDao {
    public List<Book> findAll(Integer pageNum,Integer pageSize);
    public List<Book> findByGenres(@Param("id")Integer id, @Param("start") Integer start, @Param("pageSize") Integer pageSize);
    public List<Book> findByGenres(Integer id);
    public List<Book> findByKeyOfName(String key,Integer pageNum, Integer pageSize);
    public List<Book> findByKeyOfDesc(String key,Integer pageNum, Integer pageSize);
    public Book findById(Integer id);
    public Integer findCountOfGenres(Integer id);
}
